/* 异动解析页面样式 */
.action-page {
    padding: 20px;
    background: #f5f7fa;
    min-height: calc(100vh - 60px);
}

.query-status {
    margin-bottom: 20px;
}

.action-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    height: calc(100vh - 300px);
}

.left-panel {
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tree-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.action-tree {
    background: transparent;
}

.action-tree .el-tree-node__content {
    height: 40px;
    padding: 0 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-tree .el-tree-node__content:hover {
    background-color: #f0f9ff;
}

.action-tree .el-tree-node.is-current > .el-tree-node__content {
    background-color: #e6f7ff;
    border-left: 3px solid #409eff;
}

/* 父节点样式 */
.action-tree .el-tree-node.is-expandable > .el-tree-node__content {
    font-weight: 600;
    background-color: #fafbfc;
    cursor: pointer;
}

.action-tree .el-tree-node.is-expandable > .el-tree-node__content:hover {
    background-color: #f0f9ff;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* 子节点（股票节点）样式 */
.action-tree .el-tree-node.is-leaf > .el-tree-node__content {
    height: 36px;
    font-size: 13px;
    background-color: #f8f9fa;
    margin-left: 10px;
    border-left: 2px solid #e4e7ed;
}

.action-tree .el-tree-node.is-leaf > .el-tree-node__content:hover {
    background-color: #f0f9ff;
    border-left-color: #409eff;
}

.tree-node {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 14px;
}

.node-label {
    flex: 1;
    color: #303133;
    font-weight: 500;
}

/* 父节点标签样式 */
.action-tree .el-tree-node:not(.is-leaf) .node-label {
    font-weight: 600;
    color: #2c3e50;
}

/* 子节点标签样式 */
.action-tree .el-tree-node.is-leaf .node-label {
    font-weight: 400;
    color: #606266;
    font-size: 13px;
}

.node-count {
    color: #909399;
    font-size: 12px;
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.leaf-info {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.lianban-info {
    color: #e6a23c;
    font-size: 11px;
    background: #fdf6ec;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid #f5dab1;
}

.lianban-highlight {
    color: #e6a23c;
    background: #fdf6ec;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #f5dab1;
    font-size: 11px;
    margin-left: 5px;
}

.right-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.detail-container {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.detail-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 20px;
}

.detail-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.header-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    color: #606266;
    font-size: 14px;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stock-item {
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.stock-item:hover {
    border-color: #c6e2ff;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.stock-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stock-meta .time,
.stock-meta .num,
.stock-meta .price {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #606266;
    font-size: 13px;
}

.stock-meta .price {
    color: #f56c6c;
    font-weight: bold;
}

.article-info {
    margin-bottom: 15px;
}

.article-info h5 {
    color: #303133;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #909399;
    font-size: 12px;
}

.expound-content {
    background: white;
    border-left: 4px solid #409eff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.expound-content p {
    color: #606266;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

.action-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.welcome-panel {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 统计信息面板 */
.statistics-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.statistics-panel h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
}

.stat-title {
    color: #606266;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .action-container {
        flex-direction: column;
        height: auto;
    }
    
    .left-panel {
        width: 100%;
        height: 300px;
    }
    
    .right-panel {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .action-page {
        padding: 10px;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stock-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
}